<?php

/* requires */
require_once('config.inc.php');

/* instanciate listing */
$listing = new Listing(
	$currentStep['name'],
	getListingData(_getRequestParameter('subdir', '/')),
	false,
	_getRequestParameter('page', 1),
	_getRequestParameter('item_per_page', 10),
	_getRequestParameter('listing_type', 'table'),
	_getRequestParameter('sort_by', null),
	_getRequestParameter('sort_by_direction', 'ASC'),
	_getRequestParameter('filter', null),
	_getRequestParameter('filter_value', null), 2
);
$smarty->assign('listingObj',$listing);
$smarty->assign('listing',$listing->fetch());

$smarty->display('index.tpl');
?>
